package com.wdcg.model.dao;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName= "BonusType")
public class BonusType {
public static final String BONUS_TYPE_ID_COLUMN="bonusTypeID";

	@DatabaseField(id=true, columnName=BONUS_TYPE_ID_COLUMN)
	private Integer id;
	
	@DatabaseField(columnName="bonusType")
	private Integer bonusType;
	
	@ForeignCollectionField(eager=false)
	private ForeignCollection<Bonus> bonuses;
	
	@ForeignCollectionField(eager=false)
	private ForeignCollection<BonusTypeDescription> bonusTypeDescription;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getBonusType() {
		return bonusType;
	}

	public void setBonusType(Integer bonusType) {
		this.bonusType = bonusType;
	}

	public ForeignCollection<Bonus> getBonuses() {
		return bonuses;
	}

	public void setBonuses(ForeignCollection<Bonus> bonuses) {
		this.bonuses = bonuses;
	}

	public ForeignCollection<BonusTypeDescription> getBonusTypeDescription() {
		return bonusTypeDescription;
	}

	public void setBonusTypeDescription(
			ForeignCollection<BonusTypeDescription> bonusTypeDescription) {
		this.bonusTypeDescription = bonusTypeDescription;
	}
	
	
}
